|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Functions | |
| void | main (void) |
| void | watchdog_timer (void) |
Variables | |
| uint8_t | port_mapping [] |
| void main | ( | void | ) |
Definition at line 85 of file pmap_ex3_singleFunctionToMultiplePins.c.
References __no_operation(), i, param, and port_mapping.
| void watchdog_timer | ( | void | ) |
Definition at line 215 of file pmap_ex3_singleFunctionToMultiplePins.c.
References __bic_SR_register_on_exit(), and __delay_cycles().
| uint8_t port_mapping[] |
MSP430F55x Demo - Port Map single function to multiple pins; Multiple runtime configurations
Description: The port mapping of TIMERB0 is changed with each WDT interrupt. TIMER_B0 provides 4 PWMs with 4 different duty cycles. TIMER_B0 is sourced from ACLK. ACLK is REFO, 32kHz
| / | | |
|---|---|
| – | RST |
| P4.0(TB0CCR1,2,3,4) | --> 25,50,75,87.5% |
| P4.1(TB0CCR2,3,4,1) | --> 50,75,87.5,25% |
| P4.2(TB0CCR3,4,1,2) | --> 75,87.5,25,50% |
| P4.3(TB0CCR4,1,2,3) | --> 87.5,25,50,75% |
| P4.4(TB0CCR1,2,3,4) | --> 25,50,75,87.5% |
| P4.5(TB0CCR2,3,4,1) | --> 50,75,87.5,25% |
| P4.6(TB0CCR3,4,1,2) | --> 75,87.5,25,50% |
| P4.7(TB0CCR4,1,2,3) | --> 87.5,25,50,75% |
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 73 of file pmap_ex3_singleFunctionToMultiplePins.c.
Referenced by main().